﻿@using Limestone
@using Limestone.MVC
@using LimestoneMVC.Config
@model IPage
@{
    var config = new LimestoneConfig(HttpContext.Current);
    var childPages = config.GetPageProvider().GetChildPages(Model, true);
    
    
}
<h2>@Model.Title</h2>
@Html.DisplayField(Model.Fields["content"])

<ul>
    @foreach (var childPage in childPages)
    {
        <li><a href="@childPage.Path">@childPage.Title</a></li>
    }
</ul>
